.whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease-in-out;
    z-index: 1050; /* Changed to be below modals but above other content */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.whatsapp-btn i {
    font-size: 24px;
    margin-right: 8px;
}

/* Cuando el botón se "detiene" en el footer */
.whatsapp-btn.stop {
    position: absolute;
}

/* Ensure modals stay on top */
.modal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1055;
}

/* Media query para pantallas pequeñas (menos de 576px) */
@media (max-width: 576px) {
    .whatsapp-btn {
        padding: 8px 10px; /* Reducir el tamaño del fondo verde */
        width: 50px;  /* Reducir el tamaño del botón para pantallas pequeñas */
        height: 50px; /* Hacer el fondo más pequeño manteniendo la forma circular */
    }

    /* Ocultar el texto en pantallas pequeñas */
    .whatsapp-btn span {
        display: none;
    }

    /* Ajustar el tamaño del ícono y centrarlo */
    .whatsapp-btn i {
        font-size: 28px; /* Aumentar ligeramente el tamaño del ícono */
        margin-right: 0; /* Eliminar el margen para centrar el ícono */
        margin-left: 1px; /* Ajustar el margen izquierdo */
    }
}

